import { CoordTRFUtil } from "../../common/tools/coordtool";
var CommonPaintUtil = {}

CommonPaintUtil.disPointCross = function(point,colorStr,map, mapInfo) {
    map.save();
    map.beginPath();
    map.lineWidth = 1;
    map.strokeStyle = colorStr;

    var p = CoordTRFUtil.world2Screen(point, mapInfo);
    const len = 10;
    map.moveTo(p.x - len, p.y);
    map.lineTo(p.x + len, p.y);

    map.moveTo(p.x, p.y - len);
    map.lineTo(p.x, p.y + len);

    map.stroke();
    map.closePath();
    map.restore();
}

export{CommonPaintUtil}